
<form id="form" action="{:url('info.mp/edit')}">
<input type="hidden" name="id" value="{$info.id}"/>
<input type="hidden" name="logo" value="{$info.logo}" id="logo" />
<table class="formtable"> 
    <tr><th>头像(正方形)</th><td><div url="{:url('system/passport.common/upload')}" class="img-review selectPopup">{if $info.logo}<img src="{$info.logo}">{else /}<img src="__PUBLIC__/admin/review.png">{/if}</div></td></tr>
    <tr><th>所属用户:</th>
        <td>
            <input readonly="readonly" id="uid" class="readonly input w100" type="text" name="uid" value="{$info.uid}" />
            <button url="{:url('ais/info.mp/selectUid',['input' => 'uid'])}" type="button" class="selectPopup button"><i class="iconfont icon-my_icon"></i>选择用户</button>
            {if $info.uid}
            <button url="{:url('ais/user/review',['uid' => $info.uid])}" type="button" class="selectPopup button button-blue"><i class="iconfont icon-search_icon"></i>预览</button>
            {/if}
        </td>
    </tr>
    <tr><th>名称:</th><td><input class="input" datatype="*" type="text" name="title" value="{$info.title}" /></td></tr>
    <tr><th>简介:</th><td><input class="input w300" datatype="*" type="text" name="note" value="{$info.note}" /></td></tr>
    <tr><th>认证号:</th>
        <td>
            <select class="select" name="is_vip">
                <option value="0" {$info.is_vip == 0?'selected':''}>普通号</option>
                <option value="1" {$info.is_vip == 1?'selected':''}>认证号</option>
            </select>
        </td>
    </tr>
    <tr><th>认证主体:</th><td><input class="input w300" type="text" name="vip_title" value="{$info.vip_title}" /></td></tr>
    <tr><th>主体简介:</th><td><input class="input w400" type="text" name="vip_about" value="{$info.vip_about}" /></td></tr>
    <tr><th>认证时间:</th><td><input readonly class="input w200 ui-date" type="text" name="vip_time" value="{$info.vip_time?$info.vip_time|date='Y-m-d':''}" /></td></tr>
    <tr>
        <th></th>
        <td>
            <input type="submit" value="确定" class="button button-blue submit" />
            <input type="reset" value="重置" class="button"/>
        </td>
    </tr>
</table>
</div>
</form>
<script type="text/javascript">
Do('base','layer','form','date',function(){
    $('#form').isForm();
    $(".selectPopup").win();
})
//添加图片
function setImg(show_src){
    $("#logo").val(show_src);
    $(".img-review").html('<img src="'+show_src+'">');  
}
</script>